<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<title>赢时胜报表世界数据管理系统</title>
<head th:include="common_css :: commonHeader('主页面')"></head>
<link rel="stylesheet" type="text/css" th:href="@{/css/main.css}"/>
</head>
<body class="easyui-layout">
<!-- 弹窗修改审核状态 -->
<div id="reseUserPassword" class="easyui-dialog" closed="true" modal="true">
    <div style="text-align:center;border: 0px;">
        <form id="pwdform" method="post">
            <table style="margin: 0 auto;margin-top: 20px">
                <tr>
                    <td style="text-align: right;font-size: 12px;">旧密码：</td>
                    <td><input class="easyui-validatebox"
                               data-options="required:true" missingMessage="请输入旧密码"
                               validType="oldPassword" type="password" id="oldPassword"></td>
                </tr>
                <tr>
                    <td style="text-align: right;font-size: 12px;">新密码：</td>
                    <td><input class="easyui-validatebox" missingMessage="请输入新密码" data-options="required:true,
	                    validType:['passequals[\'oldPassword\']','passindexof[\'userLoginId\']','pwdrules','isSame','isSerial']"
                               type="password" id="newPassword"></td>
                </tr>
                <tr>
                    <td style="text-align: right;font-size: 12px;">确认密码：</td>
                    <td><input class="easyui-validatebox"
                               data-options="required:true" missingMessage="请再次输入新密码"
                               validType="affirmPassword['newPassword']" type="password" id="affirmPassword"></td>
                </tr>

            </table>
        </form>
    </div>
</div>


<!-- begin of header -->
<div class="wu-header" data-options="region:'north',border:false,split:false">
    <div class="wu-header-left">
        <h1>赢时胜报表世界数据管理系统</h1>
    </div>

    <div class="wu-header-right">
        <p>
            <strong class="easyui-tooltip" id="sysTime"></strong>&nbsp;&nbsp;|
            <strong class="easyui-tooltip" id="orgName"></strong>&nbsp;&nbsp;|
            <strong class="easyui-tooltip" id="username"></strong>！欢迎您！&nbsp;&nbsp;
        </p>
        <p>
            <a href="javascript:void(0);" class="easyui-menubutton"
               data-options="menu:'#layout_north_pfMenu'">更换皮肤</a>
            |<a href="javascript:void(0)" id="version">版本号:1.0.0</a>|
            <a href="javascript:void(0)" onclick="dialogPassword(true);">修改密码</a>
            |<a href="javascript:void(0)" onclick="logout()">安全退出</a>
        <div id="layout_north_pfMenu" style=" display: none;">
            <div>default</div>
            <div>black</div>
            <div>bootstrap</div>
            <div>gray</div>
            <div>metro</div>
            <!--        <div>metro-blue</div>
                    <div>metro-gray</div>
                    <div>metro-green</div>
                    <div>metro-orange</div>
                    <div>metro-red</div>
                    <div>ui-cupertino</div>
                    <div>ui-dark-hive</div>
                    <div>ui-pepper-grinder</div>
                    <div>ui-sunny</div>-->
        </div>
        </p>
    </div>
</div>
<!-- end of header -->
<!-- begin of sidebar -->

<div class="wu-sidebar" style="width: 15%" data-options="region:'west',split:true,border:true,title:'导航菜单'">
    <div style="margin-left: 5px;margin-top: 2px;">
        <input id="ss" class="easyui-searchbox" style="width:200px"
               data-options="prompt:'搜 索'"/>
        <ul id="menutree" class="easyui-tree"></ul>
    </div>
</div>
<!-- end of sidebar -->
<!-- begin of main -->
<div class="wu-main" data-options="region:'center'">
    <div id="wu-tabs" class="easyui-tabs" data-options="border:false,fit:true">
        <div title="首页" data-options="href:'',closable:false,iconCls:'icon-tip',cls:'pd3'">
            <div region="center" border="false" style="height: 100%">
                <div id="pp" style="position:relative;overflow-x: hidden;">
                    <div style="width:100%;height: 100%">
                        <div title="提交脚本管理" style="text-align:center;height:430px;padding:5px;">
                            <!--  <div><a id="sql_script"></a></div>-->
                            <div id="containerSqlScript"></div>
                        </div>
                        <div title="表结构统计" style="text-align:center;height:430px;padding:5px;">
                            <div id="containerWroldTable"></div>
                        </div>
                    </div>
                    <div style="width:100%;height: 100%">
                        <div title="SQL统计" style="height:430px;padding:5px;text-align:center;">
                            <!-- <div id="container3"></div>-->
                            <div id="containerDataSql"></div>
                        </div>
                        <!--  <div title="基础数据统计" closable="true" style="height:300px;padding:5px;text-align:center;">
                              <div id="container"></div>
                              &lt;!&ndash;<div><a id="report_wrold_base_data"></a></div>&ndash;&gt;
                          </div>-->
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- end of main -->
<!-- begin of footer -->
<div class="wu-footer" data-options="region:'south',border:false,split:false">
    <span id="footerMsg"></span>
</div>
<!-- end of footer -->
<div id="mm" class="easyui-menu" style="width:150px;">
    <div id="mm-tabupdate">刷新</div>
    <div class="menu-sep"></div>
    <div id="mm-tabclose">关闭</div>
    <div id="mm-tabcloseall">全部关闭</div>
    <div id="mm-tabcloseother">除此之外全部关闭</div>
    <div class="menu-sep"></div>
    <div id="mm-tabcloseright">当前页右侧全部关闭</div>
    <div id="mm-tabcloseleft">当前页左侧全部关闭</div>
    <div class="menu-sep"></div>
    <div id="mm-exit">退出</div>
</div>

<div id="dlgNotic">

</div>
</div>
<input type="hidden" id="isFirstLogin" th:value="${user.isFirstLogin}">
<!--用户登录名,判断面是否包含登录名-->
<input type="hidden" id="userLoginId" th:value="${user.loginId}">
<div th:include="common_js :: commJS"></div>
<script type="text/javascript"
        th:src="@{/js/system/main.js}"></script>
</body>
<script type="text/javascript" th:inline="javascript">
    $(function () {
        var user = [[${user}]];
        if (null != user && "" != user && undefined != user) {
            $("#username").text(user.name);
            var organization = user.organization;
            if (null != organization && "" != organization && undefined != organization) {
                $("#orgName").text("所在机构：" + organization.shorterName);
            } else {
                $("#orgName").text("无机构");
            }
        }
    })

</script>
</html>
